you can use the button to get the code... or use the textbox. your choice(also the following codes i am posting are only to use on the windows forms app maily developed in visual studios)
the following code down here is a open file code
the following code here is to switch between forms(if you have multipule forms)
this following code is to clear the textbox called richTextBox1(found in the visual studio toolbox)
now for the last code... these codes closes and minamizes the application with buttons(if you have the windows forms sizable option on none)
I hope these codes came in usefull. :) I worked very hard on these codes.